<div class="input-group date" id="{{ widget.timepicker_id }}" data-target-input="nearest">
    {% include "django/forms/widgets/input.html" %}
    <div class="input-group-append" data-target="#{{ widget.timepicker_id }}" data-toggle="datetimepicker">
        <div class="input-group-text"><i class="fa fa-clock-o"></i></div>
    </div>
    {% if widget.errors %}
        {% for error in widget.errors %}
            <p id="error_{{ forloop.counter }}_id_log_time" class="invalid-feedback">
                <strong>{{ error }}</strong>
            </p>
        {% endfor %}
    {% endif %}
</div>

<script>
    $(function () {
        $("#{{ widget.timepicker_id }}").datetimepicker({
            format: 'LT',
        });
    });
</script>